import { ApiProperty } from '@nestjs/swagger';
import { IsNumber, Min } from 'class-validator';

/**
 * 购买会员DTO
 */
export class PurchaseMembershipDto {
  @ApiProperty({ description: '套餐ID', example: 1 })
  @IsNumber()
  @Min(1)
  packageId: number;
}